<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<link type="text/css" rel="stylesheet" href="css/newBook.css">
<div id="newBookTitle">
	<div id="newTitleIcon">
		<img src="images/logo.gif" width="50px" height="50px">
	</div>
	<div style="width: 500px; border-bottom: 2px dashed #9C9E6B;">
		<div id="newTitleText">
			新&nbsp;&nbsp;书&nbsp;&nbsp;上&nbsp;&nbsp;架
		</div>
		<div class="newmore">
			<a href="${CONTEXT_ROOT}/SpecialBookServlet?method=new"> <img
					src="images/more.gif" border="0"> </a>
		</div>
	</div>
</div>
<div id="newContentList">
	<c:set var="i" value="1" />
	<c:forEach items="${newBookPList.objectList}" var="newBook">
		<!-- 新书内容展现 -->
		<div id="newContent">
			<!-- 图片 -->
			<div id="newImg">
				<a
					href="${CONTEXT_ROOT}/SysBookServlet?method=viewBook&bookId=${newBook.bookId}&parentCategoryId=${newBook.categoryId}"><img
						src="${CONTEXT_ROOT}/upload/${newBook.bookImg}" border="0"
						height="110px"> </a>
			</div>
			<div id="newText">
				<p id="BookName">
					<a
						href="${CONTEXT_ROOT}/SysBookServlet?method=viewBook&bookId=${newBook.bookId}&parentCategoryId=${newBook.categoryId}">${newBook.bookName}</a>
				</p>
				<p id="BookPrice">
					<font color="#000">销售价:</font>￥<fmt:formatNumber
											value="${newBook.bookPrice}" pattern=".##"/>
				</p>
				<p><a href="${CONTEXT_ROOT}/ShoppingCartServlet?method=add&bookId=${newBook.bookId}">购买</a></p>
			</div>
		</div>
		<c:if test="${i==4}">
			<c:set var="i" value="0" />
			<div style="clear: both"></div>
		</c:if>
		<c:set var="i" value="${i+1}" />
	</c:forEach>
</div>